<%@page import="controller.webservice.WebServiceCtrl"%>

<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="JsonUtil" scope="page" class="util.JsonUtil" />


<stripes:layout-render name="/admin/master-page.jsp">

	<stripes:layout-component name="head">

	</stripes:layout-component>

	<stripes:layout-component name="content">


		<div class="container">
			<div class="row">
				<h1 class="text-center">
					<b>Round Management</b>
				</h1>

				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">Round ${actionBean.title} Status</h3>
					</div>
					<h4 class="panel-body">
						<span class="label label-${actionBean.result.status == 'error' ? "danger" : "success" }">${actionBean.result.status }</span>
					</h4>
				</div>

				<c:if test="${not empty actionBean.result.round }">
					<div class="panel panel-info">
						<div class="panel-heading">
							<h3 class="panel-title">Round Number</h3>
						</div>
						<h4 class="panel-body">${actionBean.result.round }</h4>
					</div>
				</c:if>
				
				<c:if test="${not empty actionBean.result.message }">
				<div class="panel panel-danger">
					<div class="panel-heading">
						<h3 class="panel-title">Messages</h3>
					</div>
					<div class="panel-body">${JsonUtil.getCommaSeperatedErrorMessages(actionBean.result.message) }</div>
				</div>
				</c:if>


			</div>
		</div>

	</stripes:layout-component>

	<stripes:layout-component name="end">

	</stripes:layout-component>
</stripes:layout-render>



